import java.util.*;

public class LeapYear{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        System.out.print("Ievadi gadu: ");
        int year = input.nextInt();
        
        System.out.println(year + " ir garais gads? " + ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)));
    }
}